/**
 *
 */
package com.lgCore.factory;

import com.lgCore.server.invok.ICommonRpcRouteService;
import com.lgCore.server.invok.impl.ICommonRpcRouteServiceImpl;

/**
 * @author ligang
 * server invok 服务工厂
 * 1打开netty通信
 * 2service 注册
 */
public class InvokRpcServiceFactory {
    private static ICommonRpcRouteService iCommonRpcRouteService;
    static {
        registerProtocol(new ICommonRpcRouteServiceImpl());
    }

    private static void registerProtocol(ICommonRpcRouteService iCommonRpcRouteServiceImpl) {
        iCommonRpcRouteService = iCommonRpcRouteServiceImpl;
    }

    public static ICommonRpcRouteService getCommonRpcRouteService() {
        return iCommonRpcRouteService;
    }

}
